package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单管理对象 order
 * 
 * @author ruoyi
 * @date 2025-03-09
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单 */
    private Long oid;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String onumber;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal price;

    /** 0正常/1失败 */
    @Excel(name = "0正常/1失败")
    private Long orderStatus;

    /** 0已提货/1未提货 */
    @Excel(name = "0已提货/1未提货")
    private Long itemStatus;

    /** 购买份数 */
    @Excel(name = "购买份数")
    private Long itemCount;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    public void setOid(Long oid) 
    {
        this.oid = oid;
    }

    public Long getOid() 
    {
        return oid;
    }
    public void setOnumber(String onumber) 
    {
        this.onumber = onumber;
    }

    public String getOnumber() 
    {
        return onumber;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }
    public void setItemStatus(Long itemStatus) 
    {
        this.itemStatus = itemStatus;
    }

    public Long getItemStatus() 
    {
        return itemStatus;
    }
    public void setItemCount(Long itemCount) 
    {
        this.itemCount = itemCount;
    }

    public Long getItemCount() 
    {
        return itemCount;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oid", getOid())
            .append("onumber", getOnumber())
            .append("price", getPrice())
            .append("orderStatus", getOrderStatus())
            .append("itemStatus", getItemStatus())
            .append("createTime", getCreateTime())
            .append("itemCount", getItemCount())
            .append("name", getName())
            .toString();
    }
}
